std::regex_match

From Cppreference

Jump to: navigation, search
Defined in header <regex>

template<

    class BidirectionalIterator,
    class Allocator,
    class CharT,
    class Traits
> bool regex_match( BidirectionalIterator first, BidirectionalIterator last,
                    std::match_results<BidirectionalIterator,Allocator>& m,
                    const std::basic_regex<CharT,Traits>& e,

                    std::regex_constants::match_flag_type flags = std::regex_constants::match_default );
(1)
template<

    class BidirectionalIterator,
    class CharT,
    class Traits
> bool regex_match( BidirectionalIterator first, BidirectionalIterator last,
                    const std::basic_regex<CharT,Traits>& e,

                    std::regex_constants::match_flag_type flags = std::regex_constants::match_default );
(2)
template<

    class CharT,
    class Allocator,
    class Traits
> bool regex_match( const CharT* str,
                    std::match<const CharT*,Allocator>& m,
                    const std::basic_regex<CharT,Traits>& e,

                    std::regex_constants::match_flag_type flags = std::regex_constants::match_default );
(3)
template<

    class STraits,
    class SAllocator,
    class Allocator,
    class CharT,
    class Traits
> bool regex_match( const std::basic_string<CharT,STraits,SAllocator>& s,
                    std::match_results<
                        typename std::basic_string<CharT,STraits,SAllocator>::const_iterator,
                        Allocator
                    >& m,
                    const std::basic_regex<CharT, Traits>& e,

                    std::regex_constants::match_flag_type flags = std::regex_constants::match_default );
(4)
template< class CharT, class Traits >

bool regex_match( const CharT* str,
                  const std::basic_regex<CharT,Traits>& e,

                  std::regex_constants::match_flag_type flags = std::regex_constants::match_default );
(5)
template <

    class STraits,
    class SAllocator,
    class CharT,
    class Traits
> bool regex_match( const std::basic_string<CharT, STraits, SAllocator>& s,
                    const std::basic_regex<CharT,Traits>& e,

                    std::regex_constants::match_flag_type flags = std::regex_constants::match_default );
(6)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages